/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.delaphone.flocash.web.context;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import org.apache.log4j.PropertyConfigurator;

/**
 * Web application lifecycle listener.
 * @author dongtv
 */
public class ApplicationListener implements ServletContextListener {

    public void contextInitialized(ServletContextEvent sce) {
        PropertyConfigurator.configure(getClass().getResource("/log4j.properties"));
    }

    public void contextDestroyed(ServletContextEvent sce) {
        
    }
}
